package com.kjc.demo.rcservice.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 分页数据
 * 
 * @author liyk
 *
 */
public class PaginationEntity<T> implements Serializable {

	private static final long serialVersionUID = -8436377139071417565L;

	public PaginationEntity() {

	}

	/**
	 * 分页对象
	 * 
	 * @param rows
	 *            记录信息
	 * @param total
	 *            总记录条数
	 */
	public PaginationEntity(List<T> rows, int total) {
		super();
		this.rows = rows;
		this.total = total;
	}

	/**
	 * 记录信息
	 */
	private List<T> rows;
	/**
	 * 总记录数
	 */
	private int total;

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

}
